function y = nondquar(x)
%  NONDQUAR  (CUTE) Function   
%x0= [1,-1,1,-1,...,]..  
%fmin=n/2,m=20
%Author:shi yangyang
n=length(x);
y=ones(1,n);
y(n-1)=(x(1)-x(2))^2;
y(n)=(x(n-1)+x(n))^2;
for i=1:n-2
    y(i)=(x(i)+x(i+1)+x(n))^4;
end
y=sum(y);